<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGameLoveOrderLog extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('game_love_order_log', function (Blueprint $table) {
            $table->increments('id')->comment('找情人支付下单日志表');
            $table->integer('user_id')->unsigned()->comment('用户ID');
            $table->integer('gold')->comment('下单金额');
            $table->tinyInteger('face')->unsigned()->comment('投注种类');
            $table->tinyInteger('is_win')->unsigned()->comment('赢或输，1赢，0输');
            $table->string('key')->unique()->comment('唯一索引');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
